#include <iostream>
#include <deque>

#include "eval_thresh.h"
#include "Image.H"
#include "Util.H"
#include "IO.H"
#include "rgm.h"

using namespace std;
using namespace pip;

int main(int argc, char *argv[])
{
  if (argc < 2) {
	  error("", "Usage: lab -i <input image> "); //get maze
  }
  vector<string> args(argv, argv + argc); 

  Image<unsigned char> in_char;
  Image<unsigned char> out;

  string inputname;

  getScalarArg(args, "-i", inputname);  

  importFile(in_char, inputname);
  
  solveable(in_char, out, 8);  // is the maze solveable?

  exportFile(out, "labby.pip");  // save the temp results
 
  cout << "Operation done\n";  

system("pause");

}

